package com.yc.cloud.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 文件
 * </p>
 *
 * @author Yancy
 * @since 2023-12-25
 */
@Data
@TableName("oss_file")
@ApiModel(value = "OssFile对象", description = "文件")
public class OssFile extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文件标识uuid")
    @TableField("file_id")
    private String fileId;

    @ApiModelProperty("文件名")
    @TableField("name")
    private String name;

    @ApiModelProperty("文件路径")
    @TableField("path")
    private String path;


    @ApiModelProperty("文件大小")
    @TableField("file_size")
    private Long fileSize;

    @ApiModelProperty("文件类型")
    @TableField("file_extension")
    private String fileExtension;

    @ApiModelProperty("文件特有数据")
    @TableField("metadata")
    private String metadata;

    @ApiModelProperty("企业ID")
    @TableField("company_id")
    private Long companyId;

    @ApiModelProperty("分块数量")
    @TableField("chunk")
    private Integer chunk;

    @ApiModelProperty("分块总数量")
    @TableField("total_chunk")
    private Integer totalChunk;

    @ApiModelProperty("存储桶")
    @TableField("bucket")
    private String bucket;

    @ApiModelProperty("备注信息")
    @TableField("note")
    private String note;
    public static final String FILE_ID = "file_id";

    public static final String NAME = "name";

    public static final String PATH = "path";

    public static final String BUCKET = "bucket";

    public static final String FILE_SIZE = "file_size";

    public static final String FILE_EXTENSION = "file_extension";

    public static final String METADATA = "metadata";

    public static final String COMPANY_ID = "company_id";

    public static final String NOTE = "note";

}
